<?php
namespace src\logic;
use \classlib\core as C;
class lprofile {
	public static function base($view) {
		$acl    = \classlib\acl::inst('ACLweb');
		if (!$acl->islogin()) {
			C\redirect('/');
		}
		$userid = $acl->user['id'];
		$user   = C\model::load('main.pl.userinfo')->set_dev($userid)->get_one($userid);
		$where  = array('userid'=>$user['userid']);
		$user['studio'] = C\model::load('main.pl.studio')->get_item($where);
		return $user;
	}
}